package com.skyline.wo.dao;

import java.util.List;

import com.skyline.common.bean.Page;
import com.skyline.wo.model.ShortMessage;

public interface ShortMessageDao {
	/**
	 * 
	 * @param ownerId
	 * @param ownerNickname
	 * @param ownerPortrait
	 * @param text
	 * @param source
	 * @return
	 */
	public long insertShortMessage(long ownerId, String ownerNickname, String ownerPortrait, String text, 
			String comment,long sourceOwnerId ,String sourceOwnerNickname) ;

	/**
	 * 
	 * @param id
	 * @return
	 */
	public ShortMessage queryShortMessage(long id);

	/**
	 * 
	 * @param ownerId
	 * @return
	 */
	public List<ShortMessage> queryShortMessageByOwnerId(long ownerId,Page page);
	
	public void deleteShortMessage(long id,long actionerId);
}
